package com.atguigu.service;

import com.atguigu.entity.Permission;

import java.util.List;
import java.util.Map;

/**
 * @author hljstart
 * @create 2022-06-13-14:17
 */
public interface PermissionService extends BaseService<Permission> {


    List<Map<String, Object>> findPermissionsByRoleId(Long roleId);

    void assignPermission(Long roleId, Long[] permissionIds);

    List<Permission> getMenuPermissionsByAdminId(Long userId);

    List<String> getPermissionCodesByAdminId(Long id);
}
